import 'package:flutter/material.dart';

import 'function_button_data.dart';
import 'function_button_widget.dart';

class SwiperButton extends StatelessWidget {
  const SwiperButton({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Container(
      child: Wrap(
        spacing: 2.0,
        runSpacing: 8.0,
        children: list.map((item) => FunctionButtonWidget((item)
            // width: MediaQuery.of(context).size.width * 0.195,
            // height: 30.0,
            // decoration: BoxDecoration(color: Colors.blue),
            )).toList(),
      ),
    );
  }
}
